package com.server.base.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.server.base.dto.AdminLoginDto;
import com.server.base.entity.SysAdmin;
import com.server.base.vo.AdminLoginSuccessVO;

import java.io.UnsupportedEncodingException;

/**
 * <p>
 * 系统用户 服务类
 * </p>
 *
 * @author zgr
 * @since 2023-07-11
 */
public interface ISysAdminService extends IService<SysAdmin> {

    AdminLoginSuccessVO login(AdminLoginDto adminLoginDto) throws UnsupportedEncodingException;

    SysAdmin getAdminByName(String name);

    boolean logout(Long adminId);
}
